﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COFE.Core.UnitTest;
using NUnit.Framework;
using System.IO;
using COFE.IO.FSI;
using COFE.IO.SZ;

namespace COFE.IO.SZ.UnitTest
{
    [TestFixture]
    public class TestSevenZipDirectoryLister : TestSecondaryDirectoryLister<FileSystemDirectoryLister, SevenZipDirectoryLister>
    {
         #region Constructor

        public TestSevenZipDirectoryLister()
            : base(
            new FileSystemDirectoryLister(null, "FSD", 
                Directory.CreateDirectory(
                Path.Combine(System.Environment.GetEnvironmentVariable("TEMP"), "TESTCOFE")).FullName), //Directory Lister start at C:\Temp
            @"",
            new SevenZipDirectoryLister(null, "SZ"),
            "Test",
            "zip")                                         //Test it in C:\Temp\Test.zip
        {
            
        }

        #endregion

        #region Methods

        [Test]
        public override void Test()
        {
            CleanUp();
            CreateDirectories();
            CreateFiles();
            CopyFiles();
            PollFileProperties();
            PollDirectoryProperties();
            RemoveFiles();
            RemoveDirectories();
        }
       
        #endregion

        #region Data


        #endregion

        #region Public Properties

        #endregion

    }
}
